<template>
  <div>

  </div>
</template>
<script>
// convert any geometry
import {geomToGml} from 'geojson-to-gml-3';
import axios from "axios";
export default {
  data(){
    return {

    }
  },

  created () {
    let result = "";
    axios.get("static/geo.json")
    .then(
      res=>{
        console.log(res);
        res.data.features.forEach(one=>{
          let str = geomToGml(one.geometry);
          str=str.replace("<gml:Polygon>",`"<gml:Polygon id="${one.properties.type}">`)
          result+=str;
        })
        console.log(result);
      }
    )
  }
}
</script>
